//
//  StatisticsViewController.m
//  Butler
//
//  Created by liaozhenming on 16/6/17.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import "StatisticsViewController.h"

#import "EmployeePerformanceTableViewCell.h"
#import "KKEmployeePerformanceDetailView.h"

@interface StatisticsViewController ()

@property (nonatomic, strong)KKEmployeePerformanceDetailView *performanceDetailView;

@end

@implementation StatisticsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.tableView.tableFooterView = [UIView new];
    _performanceDetailView = [[KKEmployeePerformanceDetailView alloc] init];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Action methods

- (IBAction)action_back:(id)sender {
    
    [self.navigationController popViewControllerAnimated: YES];
}

#pragma mark - UITableView methods

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 3;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}

- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    EmployeePerformanceTableViewCell *cell = [EmployeePerformanceTableViewCell kk_cellWithTableView: tableView];
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    [_performanceDetailView kk_show];
}


@end
